package com.fadadianqi.mall.product.model;

import com.fadadianqi.commons.BaseObject;

import java.util.Date;


/**
 * 商品属性值集合
 *
 * @author aroot
 */
public class ItemSKUAttrVals extends BaseObject {

    /**
     *
     */
    private static final long serialVersionUID = 5880614560595082452L;

    /**
     * @see {@link ItemSKUAttr#id }
     */
    private String skuAttrId;

    /**
     * 属性值排序 很关键会影响到sku库存单位的正确性
     * 系统根据设定顺序取出所有属性，按ID加密后生成sku属性值集合的唯一标识
     * 下次增加新品时会根据商品 spu ID
     * 以及 sku属性值集合来判断此商品单位以前是否存在
     */
    private Long order;

    /**
     * @see {@link ItemSKU#id}
     */
    private String skuId;


    /**
     * @see {@link AttrVal#id}
     */
    private String attrValId;

    private Date addTime;


    public String getSkuAttrId() {
        return skuAttrId;
    }

    public void setSkuAttrId(String skuAttrId) {
        this.skuAttrId = skuAttrId;
    }

    public Long getOrder() {
        return order;
    }

    public void setOrder(Long order) {
        this.order = order;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public String getAttrValId() {
        return attrValId;
    }

    public void setAttrValId(String attrValId) {
        this.attrValId = attrValId;
    }
}
